package com.jian.java.service;

import com.jian.java.bean.CommonResult;
import com.jian.java.bean.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Jiange
 * @create 2021-06-02-20:24
 */
@FeignClient(value = "")
@Component
public interface PaymentFeign {
    @GetMapping("/payment/add")
    public CommonResult create(Payment payment);

    @GetMapping("/payment/get/{id}")
    public CommonResult getId(@PathVariable("id") int id);

    @GetMapping("/payment/getall")
    public CommonResult getAll();
}
